$.ajax({
    url: "findWeaponIconServlet",
    dataType: "json",
    type: "post",
    success: function (icons) {
        for (var i = 0; i < icons.length; i++) {
            var path = icons[i].path;
            var name = icons[i].name;
            var $b = "<a data-v-2952ed45=\"\" href=\"http://localhost:8080/demo01/showWeapon.html\" target=\"_blank\" class=\"collection-avatar__item\"><div data-v-2952ed45=\"\" class=\"collection-avatar__icon\" data-src=\"https://act-upload.mihoyo.com/wiki-user-upload/2024/08/23/75833613/21f8e062179c868c623afe7d421f45b9_3447379829755557630.png?x-oss-process=image/quality,q_75/resize,s_120\" lazy=\"loaded\" style=\"background-image: url('image"+"/"+path+"');\"><div data-v-2952ed45=\"\" class=\"red-point\"><!----></div></div> <div data-v-2952ed45=\"\" class=\"collection-avatar__title\">"+name+"</div></a>";
            $("#icon2").append($b);
        }
    }
});










